package yx.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * BsVehicle entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "bs_vehicle", catalog = "")
public class BsVehicle implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer studentId;
	private String brand;
	private String model;
	private String plateNo;
	private String memo;

	// Constructors

	/** default constructor */
	public BsVehicle() {
	}

	/** full constructor */
	public BsVehicle(Integer studentId, String brand, String model, String plateNo, String memo) {
		this.studentId = studentId;
		this.brand = brand;
		this.model = model;
		this.plateNo = plateNo;
		this.memo = memo;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "STUDENT_ID")
	public Integer getStudentId() {
		return this.studentId;
	}

	public void setStudentId(Integer studentId) {
		this.studentId = studentId;
	}

	@Column(name = "BRAND", length = 128)
	public String getBrand() {
		return this.brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	@Column(name = "MODEL", length = 64)
	public String getModel() {
		return this.model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	@Column(name = "PLATE_NO", length = 32)
	public String getPlateNo() {
		return this.plateNo;
	}

	public void setPlateNo(String plateNo) {
		this.plateNo = plateNo;
	}

	@Column(name = "MEMO")
	public String getMemo() {
		return this.memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

}